package com.example.yuanboot.common.msg;

import lombok.Getter;

/**
 * 基本错误码
 *
 * @author qingyan 2021-06-08
 */
@Getter
public enum  BaseResultCode implements IResultCode{
    /**
     * 成功
     */
    SUCCESS("200", "Success"),

    /**
     * 拒绝访问
     */
    FORBIDDEN("403", "Forbidden"),

    /**
     * 授权失败
     */
    UNAUTHORIZED("401", "Unauthorized"),

    /**
     * 登录失败
     */
    LOGIN_FAIL("401", "LoginFail"),

    /**
     * 请求成功
     */
    URL_ERROR("500", "地址有误"),

    /**
     * 请求方式有误
     */
    POST_METHOD_ERROR("500", "请求方式有误"),

    /**
     * 操作失败
     */
    FAILED("500", "操作失败");

    private String code;
    private String message;

    BaseResultCode(String code, String msg) {
        this.code = code;
        this.message = msg;
    }

}
